package service;

import java.util.List;

import models.FeedBack;

public class FeedBackService {
	 
	public static void create(FeedBack f){
		f.create();
	}
	
	public static List<FeedBack> findAll(){
		return FeedBack.findAll();
	}
	
	public static List<FeedBack> findByPPL(long memId){
		return FeedBack.find("memId=? order by febTime desc", memId).fetch();
	}
	
	public static FeedBack findById(long id){ ///
		FeedBack feb =FeedBack.findById(id);
		return feb;
	}
	
	public static void save(FeedBack feb){
		feb.save();
	}
	
	public static void delete(long id){
		FeedBack.findById(id)._delete();
	}
}
